<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Flex 方向</title>
    <style>
        ol {
            display: flex;
            padding: 5px;
            border: 1px dashed;
            background: silver;
            flex-direction: row;
        }

        ol>li {
            margin: 0 5px;
            padding: 3px 10px;
            background: seashell;
            list-style: none;
            border: 1px solid;
        }
    </style>
</head>

<body>
    <ol>
        <li>1</li>
        <li>2</li>
        <li>3</li>
        <li>4</li>
        <li>5</li>
    </ol>
</body>


</html>